var express = require('express')
var stu = require('./stu')
// 1. 创建一个路由容器
var router = express.Router()

// 2. 然后把所有的路由挂载给 router 就可以了
router
	.get('/student',stu.showStudent)
	.get('/student/list',stu.showList)
	.get('/student/add',stu.showStudentAdd)
	.post('/student/add',stu.addStudent)
	.get('/student/remove/:id', stu.removeProduct)
	.get('/student/edit/', stu.showEditStudent)
	.post('/student/update',stu.updateStudent)
// 3. 把 router 暴露出来
module.exports = router
